package com.xjx.dao;

import com.xjx.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    List<User> findAll();
    User login(@Param("userCode")String userCode,@Param("userPassword")String userPassword);
    int count(@Param(value = "userName")String userName,
                     @Param(value = "userCode")String userCode,
                     @Param(value = "startDate")String startDate,
                     @Param(value = "endDate")String endDate);
    List<User> findByPage(@Param("start")int start,
                                 @Param("size")int size,
                                 @Param("userName")String userName,
                                 @Param("userCode")String userCode,
                                 @Param("startDate")String startDate,
                                 @Param("endDate")String endDate);
    int save(User user);
    int modify(User user);
    User findById(Integer id);
    int delete(Integer id);
}
